<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{faChartOfAccountBean.page}"/>
		<f:event type="preRenderView" listener="#{faChartOfAccountBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Fa Chart Of Account entities"/>

	<ui:define name="header">
		Fa Chart Of Account
	</ui:define>

	<ui:define name="subheader">
		Search Fa Chart Of Account entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="faChartOfAccountBeanExampleAccNo" value="Acc No:"/>
						<h:panelGroup>
							<h:inputText id="faChartOfAccountBeanExampleAccNo" value="#{faChartOfAccountBean.example.accNo}"/>
							<h:message for="faChartOfAccountBeanExampleAccNo" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faChartOfAccountBeanExampleFaAccountGrp" value="Fa Account Grp:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{faAccountGrpBean.converter}" id="faChartOfAccountBeanExampleFaAccountGrp" value="#{faChartOfAccountBean.example.faAccountGrp}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{faAccountGrpBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="faChartOfAccountBeanExampleFaAccountGrp" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faChartOfAccountBeanExampleAccCode" value="Acc Code:"/>
						<h:panelGroup>
							<h:inputText id="faChartOfAccountBeanExampleAccCode" maxLength="50" value="#{faChartOfAccountBean.example.accCode}"/>
							<h:message for="faChartOfAccountBeanExampleAccCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faChartOfAccountBeanExampleAccName" value="Acc Name:"/>
						<h:panelGroup>
							<h:inputText id="faChartOfAccountBeanExampleAccName" maxLength="300" value="#{faChartOfAccountBean.example.accName}"/>
							<h:message for="faChartOfAccountBeanExampleAccName" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="faChartOfAccountBeanExampleStatusIsCtrlAcc" value="Status Is Ctrl Acc:"/>
						<h:panelGroup>
							<h:inputText id="faChartOfAccountBeanExampleStatusIsCtrlAcc" value="#{faChartOfAccountBean.example.statusIsCtrlAcc}"/>
							<h:message for="faChartOfAccountBeanExampleStatusIsCtrlAcc" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{faChartOfAccountBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{faChartOfAccountBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="faChartOfAccountBeanPageItems" styleClass="data-table" value="#{faChartOfAccountBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Acc No"/>
					</f:facet>
					<h:link outcome="/faChartOfAccount/view">
						<f:param name="id" value="#{_item.accNo}"/>
						<h:outputText id="itemAccNo" value="#{_item.accNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Status Is Ctrl Acc"/>
					</f:facet>
					<h:link outcome="/faChartOfAccount/view">
						<f:param name="id" value="#{_item.accNo}"/>
						<h:outputText id="itemStatusIsCtrlAcc" value="#{_item.statusIsCtrlAcc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{faChartOfAccountBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
